package com.niguang.work.api.enums;

import lombok.Getter;

@Getter
public enum ReformRoleTypeEnum {

    PUBLIC_USER(0, "普通用户"),

    REFORM_USER(1, "整改人"),

    APPLY_USER(2, "审核人");


    private Integer index;

    private String desc;

    ReformRoleTypeEnum(Integer index, String desc) {
        this.index = index;
        this.desc = desc;
    }

    public static String getName(Integer index) {
        for (ReformRoleTypeEnum c : ReformRoleTypeEnum.values()) {
            if (c.index.equals(index)) {
                return c.desc;
            }
        }
        return "";
    }
}
